<?php
/**
 * TestGuest Version1.0
 * ================================================
 * Copy 2017-2018 zxj
 * Web: http://www.zhaoxiaojie.club
 * ================================================
 * Author: Zxj
 * Date: 17/8/2
 * Time: 下午2:37
 */
define('zxj',true);
define('CSS','face');
require_once dirname(__FILE__).'/includes/common.inc.php';

$_start_time = _runtime();
?>

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>多用户留言系统--头像选择1</title>
    <?php include_once 'includes/title.inc.php'; ?>
    <script>
            //切换头像
            function _open(alt){

              opener.document.getElementById('touxiang').src = alt;
              opener.document.getElementById('facevalue').value = alt;

              window.close();
            }


    </script>
</head>
<body>
<div id="face">
    <h3>选择头像</h3>
<dl>
<?php
foreach(range(1,9) as $v){
?>
    <dd><img src="face/m0<?php echo $v;?>.gif" alt="face/m0<?php echo $v;?>.gif" onclick="_open(this.alt);" /></dd>

<?php
}
?>
</dl>
<dl>
    <?php
    foreach(range(10,64) as $v){
        ?>
    <dd><img src="face/m<?php echo $v;?>.gif" alt="face/m<?php echo $v;?>.gif" onclick="_open(this.alt);" /></dd>

        <?php
    }
    ?>
</dl>
</div>
</body>
</html>